/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.ap.entity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.List;
import com.google.common.collect.Lists;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 采购申请Entity
 * @author LCH
 * @version 2018-12-12
 */
public class ProcurementApplication extends DataEntity<ProcurementApplication> {
	
	private static final long serialVersionUID = 1L;
	private String bm;		// 部门
	private Date date;		// 申请日期
	private String sqr;		// 申请人
	private String zje;		// 总金额（剔税）
	private String pj;		// 票据类型（剔税）
	private String zjehs;		// 总金额（含税）
	private String phhs;		// 票据类型（含税）
	private String cgsm;		// 采购说明
	private String code;		// 单据号
	private String gys;		// 供应商及联系方式
	private String cgbm;		// 采购实施部门
	private String ysbm;		// 验收部门
	private String status;		// 单据状态
	private String cgzt;
	private String pro;		// 项目
	private List<ApplicationDetil> applicationDetilList = Lists.newArrayList();		// 子表列表
	private List<ApplicationApproval> applicationApprovalsList = Lists.newArrayList();		// 子表列表
	private String type;
	private String min;
	private String max;
    private String cgqsr;
    private Date qssj;
    private String syfzr;

	public String getCgqsr() {
		return cgqsr;
	}

	public void setCgqsr(String cgqsr) {
		this.cgqsr = cgqsr;
	}
	@JsonFormat(pattern = "yyyy-MM-dd")
	public Date getQssj() {
		return qssj;
	}

	public void setQssj(Date qssj) {
		this.qssj = qssj;
	}




	public String getSyfzr() {
		return syfzr;
	}

	public void setSyfzr(String syfzr) {
		this.syfzr = syfzr;
	}

	public String getCgzt() {
		return cgzt;
	}

	public void setCgzt(String cgzt) {
		this.cgzt = cgzt;
	}

	public List<ApplicationApproval> getApplicationApprovalsList() {
		return applicationApprovalsList;
	}

	public void setApplicationApprovalsList(List<ApplicationApproval> applicationApprovalsList) {
		this.applicationApprovalsList = applicationApprovalsList;
	}

	public String getMin() {
		return min;
	}

	public void setMin(String min) {
		this.min = min;
	}

	public String getMax() {
		return max;
	}

	public void setMax(String max) {
		this.max = max;
	}
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public ProcurementApplication() {
		super();
	}

	public ProcurementApplication(String id){
		super(id);
	}

	@ExcelField(title="部门", align=2, sort=7)
	public String getBm() {
		return bm;
	}

	public void setBm(String bm) {
		this.bm = bm;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd")
	@ExcelField(title="申请日期", align=2, sort=8)
	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}
	
	@ExcelField(title="申请人", align=2, sort=9)
	public String getSqr() {
		return sqr;
	}

	public void setSqr(String sqr) {
		this.sqr = sqr;
	}
	
	@ExcelField(title="总金额（剔税）", align=2, sort=10)
	public String getZje() {
		return zje;
	}

	public void setZje(String zje) {
		this.zje = zje;
	}
	
	@ExcelField(title="票据类型（剔税）", align=2, sort=11)
	public String getPj() {
		return pj;
	}

	public void setPj(String pj) {
		this.pj = pj;
	}
	
	@ExcelField(title="总金额（含税）", align=2, sort=12)
	public String getZjehs() {
		return zjehs;
	}

	public void setZjehs(String zjehs) {
		this.zjehs = zjehs;
	}
	
	@ExcelField(title="票据类型（含税）", align=2, sort=13)
	public String getPhhs() {
		return phhs;
	}

	public void setPhhs(String phhs) {
		this.phhs = phhs;
	}
	
	@ExcelField(title="采购说明", align=2, sort=14)
	public String getCgsm() {
		return cgsm;
	}

	public void setCgsm(String cgsm) {
		this.cgsm = cgsm;
	}
	
	@ExcelField(title="单据号", align=2, sort=15)
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@ExcelField(title="供应商及联系方式", align=2, sort=16)
	public String getGys() {
		return gys;
	}

	public void setGys(String gys) {
		this.gys = gys;
	}
	
	@ExcelField(title="采购实施部门", align=2, sort=17)
	public String getCgbm() {
		return cgbm;
	}

	public void setCgbm(String cgbm) {
		this.cgbm = cgbm;
	}
	
	@ExcelField(title="验收部门", align=2, sort=18)
	public String getYsbm() {
		return ysbm;
	}

	public void setYsbm(String ysbm) {
		this.ysbm = ysbm;
	}
	
	@ExcelField(title="单据状态", align=2, sort=19)
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	@ExcelField(title="项目", align=2, sort=20)
	public String getPro() {
		return pro;
	}

	public void setPro(String pro) {
		this.pro = pro;
	}
	
	public List<ApplicationDetil> getApplicationDetilList() {
		return applicationDetilList;
	}

	public void setApplicationDetilList(List<ApplicationDetil> applicationDetilList) {
		this.applicationDetilList = applicationDetilList;
	}
}